<template>
	<view>
		<view class="page">
			<comp-common v-bind="{data:data}" @getUserInfo="getUserInfo" @myLogin="myLogin" @getPhoneNumber="getPhoneNumber" @hideGetCoupon="hideGetCoupon" @closeCouponBox="closeCouponBox" @navigatorClick="navigatorClick"></comp-common>
			<comp-header v-bind="{data:data}" @relevanceError="relevanceError" @relevanceSuccess="relevanceSuccess"></comp-header>
			<view class="body after-navber" v-if="data.isPageShow">
				<goods-refund v-bind="{data:data}" @switchTab="switchTab" @descInput="descInput" @deleteImage="deleteImage" @chooseImage="chooseImage" @refundSubmit="refundSubmit"></goods-refund>
			</view>
			<comp-footer v-bind="{data:data}"></comp-footer>
		</view>
	</view>
</template>

<script>var myVue = {};
	import goodsRefund from '../../components/goods/goods_refund.vue'
	var e = require("../../components/goods/goods_refund.js");
	export default {
		comments:{goodsRefund},
		data() {
			return {
				data: {
        isPageShow: !1,
        pageType: "DAPP",
        switch_tab_1: "active",
        switch_tab_2: "",
        goods: {},
        refund_data_1: {},
        refund_data_2: {}
    },
			};
		},
		onLoad: function(e) {myVue = this;
        myVue.getApp.page.onLoad(this, e);
        var t = this;
        uni.showLoading({
            title: "加载中"
        }), myVue.getApp.request({
            url: myVue.getApp.api.order.refund_preview,
            data: {
                order_detail_id: e.id
            },
            success: function(e) {
                uni.hideLoading(), 0 == e.code && t.setData({
                    goods: e.data,
                    isPageShow: !0
                }), 1 == e.code && t.getApp.core.showModal({
                    title: "提示",
                    content: e.msg,
                    image: "/static/images/icon-warning.png",
                    success: function(e) {
                        e.confirm && t.getApp.core.navigateBack();
                    }
                });
            }
        });
    },
    onReady: function() {
        myVue.getApp.page.onReady(this);
    },
    onShow: function() {
        myVue.getApp.page.onShow(this), e.init(this);
    },
		methods: {
			
		},
	}
</script>

<style scoped>
</style>
